package com.epidemic.project.system.tongzhi.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.epidemic.framework.aspectj.lang.annotation.Excel;
import com.epidemic.framework.web.domain.BaseEntity;

/**
 * 通知对象 sys_tong_zhi
 *
 * @author sys
 * @date 2023-02-01
 */
public class SysTongZhi extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String name;

    /**
     * 摘要
     */
    @Excel(name = "摘要")
    private String zhaiYao;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    /**
     * 时间
     */
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private String type;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String img;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setZhaiYao(String zhaiYao) {
        this.zhaiYao = zhaiYao;
    }

    public String getZhaiYao() {
        return zhaiYao;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg() {
        return img;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("zhaiYao", getZhaiYao())
                .append("content", getContent())
                .append("addTime", getAddTime())
                .append("type", getType())
                .append("img", getImg())
                .toString();
    }
}
